package 面向对象中级.课堂练习.Exercise06;

public class Employee {
    /**
     *(1)在包中声明员工类、程序员类、设计师类、架构师类
     * 员工类属性：编号、姓名、年龄、手机号码
     * 程序员类属性：编程语言
     * 设计师类属性：奖金
     * 架构师类属性：持有股票数量
     * 要求：属性私有化，无参有参构造，get/set，getInfo方法（考虑重写）
     */
    private int id;
    private String name;
    private int age;
    private String tel;

    public Employee() {
    }

    public Employee(int id, String name, int age, String tel) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.tel = tel;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getInfo(){
        return "编号：" + id +  "，姓名：" + name + "，年龄：" + age + "，电话：" + tel;
    }
}
